package com.traval.orderANDcart.models;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import com.traval.user.models.TUser;

/**
 * TOrder entity. @author MyEclipse Persistence Tools
 */

public class TOrder implements java.io.Serializable {

	// Fields

	private Integer oid;
	private TUser TUser;
	private Timestamp createTime;
	private String orderStatus;
	private Double price;
	private Set TOrderinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public TOrder() {
	}

	/** minimal constructor */
	public TOrder(TUser TUser, Timestamp createTime, String orderStatus) {
		this.TUser = TUser;
		this.createTime = createTime;
		this.orderStatus = orderStatus;
	}

	/** full constructor */
	public TOrder(TUser TUser, Timestamp createTime, String orderStatus, Double price, Set TOrderinfos) {
		this.TUser = TUser;
		this.createTime = createTime;
		this.orderStatus = orderStatus;
		this.price = price;
		this.TOrderinfos = TOrderinfos;
	}

	// Property accessors

	public Integer getOid() {
		return this.oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public TUser getTUser() {
		return this.TUser;
	}

	public void setTUser(TUser TUser) {
		this.TUser = TUser;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Set getTOrderinfos() {
		return this.TOrderinfos;
	}

	public void setTOrderinfos(Set TOrderinfos) {
		this.TOrderinfos = TOrderinfos;
	}

}